;
(function () {
  'use strict';
  angular.module('controllers.analysisSysOM.tps')
    .controller('avgTpsController', avgTpsController);

  function avgTpsController($scope, avgTpsService,COREDATA,$mdDialog) {
    $scope.avgTps = avgTpsService;
    $scope.exportUrl = COREDATA.FORMPREFIX + 'analysisSysOM/sysPerformance/throughput/exportAvgTPS';
    avgTpsService.search();
    $scope.$on('$destroy', function () {
      avgTpsService.reset();
      $mdDialog.hide();
    });
  }

  avgTpsController.$inject = ['$scope', 'avgTpsService','COREDATA','$mdDialog'];
})();